package com.boyan.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boyan.auth.domain.dto.LoginFormDTO;
import com.boyan.auth.domain.po.User;
import com.boyan.auth.domain.vo.UserVO;
import com.boyan.pojo.Result;
import jakarta.servlet.http.HttpSession;

import java.math.BigDecimal;
import java.util.List;

public interface IUserService extends IService<User> {
    void deduction(Long id, BigDecimal money);

    List<UserVO> queryByCondition(String username, Integer status, BigDecimal minBalance, BigDecimal maxBalance);

    public Result sendCode(String phone, HttpSession session);

    public Result login(LoginFormDTO loginForm, HttpSession session);


    Result getUserById(Long id);


}
